/**
 *
 * requireJS默认配置文件
 * @author       Liu Yutao
 * @email        koal@vip.qq.com
 * @date         2018/1/19 20:44
 */
require.config({
    waitSeconds: 30,//超时时间
    //时间戳后缀
    // urlArgs: 'v=20171016',
    // 基准URL
    baseUrl: '/static/js/',
    // 模块和模块位置
    paths: {
        global: "../../static/css/",
        base: 'common/base',
        jquery: 'common/jquery.min',
        jqBrowser: 'common/jquery.browser.min',
        jqValidate: 'common/jquery.validate.min',
        jqValidateCN: 'common/jquery.validate.zh_CN.min',
        validForm: 'common/validForm.min',
        modernizr: 'common/modernizr.min',
        bootstrap: 'common/bootstrap.min',
        msgTool: 'plugins/toastr/toastr',
        select2: 'plugins/select2/select2.full.min',
        iCheck: 'plugins/iCheck/icheck.min',
        baseUtils: 'common/baseUtils',
        print: 'common/print',
        fileInput: 'plugins/fileInput/fileinput.min',
        AIO_Main: '../start/modules/main',
        AIO_App: '../start/modules/app',
        AIO_A4Print: '../start/modules/A4Print',
        AIO_Camera: '../start/modules/Camera',
        AIO_mainScreen: '../start/modules/main_screen',
        AIO_viceScreen: '../start/modules/vice_screen'
    },
    // 解决使用非AMD方式定义的模块（如jQuery插件）及其载入顺序和依赖
    shim: {
        bootstrap: ['jquery'],
        base: ['bootstrap'],
        jqBrowser: ['jquery'],
        jqValidate: ['jquery'],
        jqValidateCN: ['jqValidate'],
        validForm: ['jquery'],
        select2: ['css!global/plugins/select2/select2.min.css', 'css!global/plugins/select2/select2-bootstrap.css', 'jquery'],
        msgTool: ['jquery'],
        fileInput: ['css!global/plugins/fileInput/fileinput.min.css', 'jquery'],
        iCheck: ['jquery'],
        baseUtils: ['jquery'],
        AIO_Main: ['jquery'],
        AIO_A4Print: ['jquery','AIO_Main'],
        AIO_Camera: ['jquery','AIO_Main'],
        AIO_mianScreen: ['jquery','AIO_Main'],
        AIO_viceScreen: ['jquery','AIO_Main']
    },
    map: {
        "*": {
            css: "css"
        }
    }
});